package com.fly.system.model;

import com.fly.common.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @CLASSNAME: SysUserModel
 * @author: Fly
 * 日期: 2020/6/7  15:59
 * 描述:系统菜单实体
 **/

@Table(name = "sys_menu")
public class SysMenuModel extends BaseModel {
    /**
	 * 
	 */
	private static final long serialVersionUID = 6033700981665724626L;

    //菜单名称
    @Column(name = "menu_name")
    private String menuName;
    //路径
    @Column(name = "url")
    private String url;
    //父ID
    @Column(name = "parent_id")
    private Long parentId;
    //标识
    @Column(name = "pms")
    private String pms;
    //菜单图片
    @Column(name = "icon")
    private String icon;

    //菜单图片
    @Column(name = "menu_type")
    private String menuType;

    //是否打开新页面
    @Column(name = "is_open")
    private Integer isOpen;

    /*父级菜单名称*/
    @Transient
    private String parentText;

    public String getParentText() {
        return parentText;
    }

    public void setParentText(String parentText) {
        this.parentText = parentText;
    }

    public String getMenuType() {
        return menuType;
    }

    public void setMenuType(String menuType) {
        this.menuType = menuType;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getPms() {
        return pms;
    }

    public void setPms(String pms) {
        this.pms = pms;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getIsOpen() {
        return isOpen;
    }

    public void setIsOpen(Integer isOpen) {
        this.isOpen = isOpen;
    }
}
